package com.dotflat.banner.domain;

import com.dotflat.rest.domain.AreableObjectBase;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "op_banner")
@Data
@EqualsAndHashCode(callSuper = true)
public class OPBanner extends AreableObjectBase {

	@Column(name = "cover", columnDefinition = "varchar(1024)  COMMENT '封面'")
	private String cover="";

	@Column(columnDefinition = "varchar(512) COMMENT '图片地址'")
	private String link;

	@Column(columnDefinition = " int default 0  COMMENT '顺序'")
	private Integer sort = 0;

	@Column(columnDefinition = " int default 0  COMMENT '位置'")
	private Integer position = 0;

	@Column(columnDefinition = "varchar(64) COMMENT '文章标题'")
	private String title;

	@Column(columnDefinition = "varchar(128) COMMENT '子标题'")
	private String subtitle;

	@Column(columnDefinition = "varchar(64) COMMENT '附加标签，可以作为角标用，比如火热，促销等'")
	private String tags;
}
